package com.yy.wga.mp.module.income.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yy.wga.mp.module.income.request.IncomeUserBalanceWithdrawRequest;
import com.yy.wga.mp.module.income.request.IncomeUserBalanceWithdrawRequest;
import com.yy.wga.mp.module.income.entity.pojo.IncomeUserBalanceDO;
import com.yy.wga.mp.module.income.request.IncomeUserBalanceWithdrawRequest;
import com.yy.wga.mp.module.income.request.IncomeUserBalanceWithdrawRequest;

/**
 * 用户余额(IncomeUserBalance)表服务接口
 *
 * @author guochao
 * @since 2024-11-12 00:27:47
 */
public interface IncomeUserBalanceService extends IService<IncomeUserBalanceDO> {
    /**
     * 提现
     * @param userId
     * @param request
     */
    void withdraw(Long userId, IncomeUserBalanceWithdrawRequest request);

    /**
     * 增加收益
     * @param incomeUserBalance
     */
    void incrementIncome(IncomeUserBalanceDO incomeUserBalance);
}
